package com.yubest.designpattern.behavior.state;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 状态
 *
 * @Author: hweiyu
 * @Date: 2022/10/26 18:07
 */
@Data
@AllArgsConstructor
public class State {

    /**
     * 1:上线; 2:下线; 3:忙碌
     */
    private Integer value;

    public void online() {
        System.out.println("qq is online");
    }

    public void offline() {
        System.out.println("qq is offline");
    }

    public void busy() {
        System.out.println("qq is busy");
    }

}
